package com.funtl.itoken.web.admin.controller;

import com.funtl.itoken.web.admin.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class AdminController {

    @Autowired
    private AdminService adminService;

    /**
     * 跳转登录面
     * @return
     */
    @RequestMapping(value = {"","login"},method = RequestMethod.GET)
    public String login(){
        System.out.println("login");
        return "index";
    }

    @RequestMapping(value = "hello",method = RequestMethod.GET)
    public String hello(){
        System.out.println("hello");

        String json = adminService.login("","");
        System.out.println(json);
        return "hello";
    }
}
